package com.eorchis.module.trainingclass.domain;

import java.sql.Blob;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.eorchis.core.basedao.entity.IBaseEntity;

/**
 * Title: TrainingClass<br>
 * Description: 附件实体对象<br>
 * Company: GoldGov<br>
 * Copyright @ 2012 GoldGov .All rights reserved.<br>
 * @author RongSL
 * @createDate 2016-07-28
 * @version $Revision$
 */
@Entity
@Table(name = "Base_Attachment")
public class BaseAttachment implements IBaseEntity {

	private static final long serialVersionUID = 1L;
	private String attachmentId;
	private String fileName;
	private String primevalFileName;
	private String groupCode;
	private Integer fileSize;
	private String fileType;
	private String mimeType;
	private Date uploadDate;
	private String uploadUser;
	private Integer modifiabilityScope;
	private Integer downloadNumber;
	private Blob content;

	@Id
	@GeneratedValue(generator = "system-uuid")
	@GenericGenerator(name = "system-uuid", strategy = "uuid")
	@Column(name ="attachment_Id")
	public String getAttachmentId() {
		return attachmentId;
	}
	public void setAttachmentId(String attachmentId) {
		this.attachmentId = attachmentId;
	}
	@Column(name="file_Name")
	public String getFileName() {
		return fileName;
	}
	public void setFileName(String fileName) {
		this.fileName = fileName;
	}
	@Column(name="primeval_File_Name")
	public String getPrimevalFileName() {
		return primevalFileName;
	}
	public void setPrimevalFileName(String primevalFileName) {
		this.primevalFileName = primevalFileName;
	}
	@Column(name="group_Code")
	public String getGroupCode() {
		return groupCode;
	}
	public void setGroupCode(String groupCode) {
		this.groupCode = groupCode;
	}
	@Column(name="file_Size")
	public Integer getFileSize() {
		return fileSize;
	}
	public void setFileSize(Integer fileSize) {
		this.fileSize = fileSize;
	}
	@Column(name="file_Type")
	public String getFileType() {
		return fileType;
	}
	public void setFileType(String fileType) {
		this.fileType = fileType;
	}
	@Column(name="mime_Type")
	public String getMimeType() {
		return mimeType;
	}
	public void setMimeType(String mimeType) {
		this.mimeType = mimeType;
	}
	@Column(name="upload_Date")
	public Date getUploadDate() {
		return uploadDate;
	}
	public void setUploadDate(Date uploadDate) {
		this.uploadDate = uploadDate;
	}
	@Column(name="upload_User")
	public String getUploadUser() {
		return uploadUser;
	}
	public void setUploadUser(String uploadUser) {
		this.uploadUser = uploadUser;
	}
	@Column(name="modifiability_Scope")
	public Integer getModifiabilityScope() {
		return modifiabilityScope;
	}
	public void setModifiabilityScope(Integer modifiabilityScope) {
		this.modifiabilityScope = modifiabilityScope;
	}
	@Column(name="download_Number")
	public Integer getDownloadNumber() {
		return downloadNumber;
	}
	public void setDownloadNumber(Integer downloadNumber) {
		this.downloadNumber = downloadNumber;
	}
	@Column(name="content")
	public Blob getContent() {
		return content;
	}
	public void setContent(Blob content) {
		this.content = content;
	}
}
